ARRAY INSERT AT ELEMENT

This command will insert a blank item at the position specified in the array list.

  Syntax
ARRAY INSERT AT ELEMENT Array Name(0), Index
  Parameters
Array Name(0
Integer
The name of the array followed by a pair of brackets ( ). You can also insert a value of zero, i.e. arrayname(0)
Index
Integer
This value is an integer number such as 1.

  Returns

This command does not return a value.

  Description

When a blank item is inserted into a list, all the elements thereafter are shuffled one space down to make room for the new item. Lists are an expandable and shrinkable form of array.

  Example Code
DIM array(0)
FOR T=1 TO 5
ARRAY INSERT AT ELEMENT array(),0
NEXT T
PRINT ARRAY COUNT(array())
WAIT KEY
  See also

CORE Commands Menu
Index